package com.glory.huaweipda.adapter

import android.view.View
import android.widget.LinearLayout
import androidx.databinding.BindingAdapter
import com.glory.huaweipda.R


object ImageAdapter {

    @BindingAdapter(value = ["imageFile"])
    @JvmStatic
    fun setBitmap(image: LinearLayout, path: String) {

        if (path.equals(R.string.idel)){
            image.visibility = View.VISIBLE
        }else{
            image.visibility = View.GONE
        }
    }

}